#include "Pthread.hpp"
#include <unordered_map>
#include <memory>

#define NUM 10


class threadData
{
public:
    int max;
    int start;
};

void Count(threadData td)
{
    for(int i = td.start;i < td.max;i++)
    {
        std::cout << "i == " << i << std::endl;
        sleep(1);
    }
}

int main()
{
    threadDate td;
    td.max = 60;
    td.start = 50;
    ThreadModule::Thread<threadDate> t(Count,td);
    t.Start();

    t.Join();
    return 0;
}